package com.mi.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mi.system.dto.query.LogQueryDTO;
import com.mi.system.entity.Log;
import com.mi.system.mapper.LogMapper;
import com.mi.system.vo.LogVO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * Log service
 *
 * @author jin_huaquan
 * @version 1.0
 * @date 2021/11/1 14:00
 */
@Service
@RequiredArgsConstructor
public class LogServiceImpl extends ServiceImpl<LogMapper, Log> implements LogService {

    @Override
    public Page<LogVO> listLog(Page page, LogQueryDTO query) {
        return baseMapper.selectByPage(page, query);
    }
}
